package org.wms.minbearwcs.dao.lift.impl;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;
import org.wms.minbearwcs.dao.lift.inf.LiftRequestPointGroupDao;
import org.wms.minbearwcs.entity.Mapper.lift.LiftRequestPointGroupMapper;
import org.wms.minbearwcs.entity.PO.wcs.lift.LiftRequestPointGroup;

@Repository
@RequiredArgsConstructor
public class LiftRequestPointGroupImpl implements LiftRequestPointGroupDao {

    private final LiftRequestPointGroupMapper mapper;

    @Override
    public String selectRequestPointByGroupCode(String groupCode) {
        return new LambdaQueryChainWrapper<>(mapper)
                .eq(LiftRequestPointGroup::getGroupCode,groupCode)
                .one()
                .getRequestPoint();
    }
}
